import request from '@/utils/request';

// 获取数据列表
export async function getDataTable(params) {
  return request('/sys/dict/getDictPage', {
    params,
    method:'get'
  });
}
//更改状态
//status 0激活，1禁用
export async function changeStatus(params) {
  console.log(params)
  return request('/sys/dict/updateStatus', {
    method: 'POST',
    params,
  });
}
// 新增数据字典
export async function updateData (params) {
  console.log(params)
  return request('/sys/dict/save', {
    method: 'POST',
    data: params
  });
}